# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=py3-simpleparse
pkgver=2.2.4
pkgrel=1
pkgdesc="Python library providing simple and fast parser generator"
url="http://simpleparse.sourceforge.net/"
arch="all"
license="eGenix ISC"
depends="python3"
makedepends="python3-dev py3-gpep517 py3-setuptools py3-wheel"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/s/simpleparse/SimpleParse-$pkgver.tar.gz"
builddir="$srcdir/SimpleParse-$pkgver"
options="!check" # fail for some reason

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
	rm -r "$pkgdir"/usr/lib/python3*/site-packages/tests/
}

sha512sums="
12cd8425db92da02bc0c394282214a2cd3379e28d6ea3d631a8ae98808e04612523f37100abd6ff1448d1a61d355acc93b652eafb47cafaf87e28af990c37242  SimpleParse-2.2.4.tar.gz
"
